package cn.stylefeng.guns.modular.api.mapper;

import cn.stylefeng.guns.modular.api.entity.Client;
import cn.stylefeng.guns.modular.api.model.params.ClientParam;
import cn.stylefeng.guns.modular.api.model.result.ClientResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户 Mapper 接口
 * </p>
 *
 * @author samwuu
 * @since 2019-09-27
 */
public interface ClientMapper extends BaseMapper<Client> {

    /**
     * 获取列表
     *
     * @author samwuu
     * @Date 2019-09-27
     */
    List<ClientResult> customList(@Param("paramCondition") ClientParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author samwuu
     * @Date 2019-09-27
     */
    Page<ClientResult> customPageList(@Param("page") Page page, @Param("paramCondition") ClientParam paramCondition);


}
